from application import db

class AppErrorLog(db.Model):
    __tablename__ = 'app_error_log'

    id = db.Column(db.Integer, primary_key=True)
    referer_url = db.Column(db.String(255), nullable=False, server_default=db.FetchedValue(), info='褰撳墠璁块棶鐨剅efer')
    target_url = db.Column(db.String(255), nullable=False, server_default=db.FetchedValue(), info='璁块棶鐨剈rl')
    query_params = db.Column(db.Text, nullable=False, info='get鍜宲ost鍙傛暟')
    content = db.Column(db.String, nullable=False, info='鏃ュ織鍐呭?')
    created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='鎻掑叆鏃堕棿')
